package com.yonyou.cyxdms.sysAuth.service.entity.itemPush;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.yonyou.cyxdms.framework.bean.entity.base.DMSBasePO;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import java.io.Serializable;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangtan
 * @since 2020-11-19
 */
@TableName("tr_item_push")
public class ItemPushPO extends DMSBasePO<ItemPushPO> {

    private static final long serialVersionUID = 1L;

        @TableId(value = "ID", type = IdType.AUTO)
        private Long id;
    /**
     * 业务数据主键
     */
    @TableField("ITEM_ID")
    private String itemId;
    /**
     * 是否需要推送 0 是  1 否
     */
    @TableField("IS_PUSH")
    private String isPush;
    /**
     * 业务代码
     */
    @TableField("ITEM_CODE")
    private String itemCode;

    public ItemPushPO() {
        super();
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getIsPush() {
        return isPush;
    }

    public void setIsPush(String isPush) {
        this.isPush = isPush;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ItemPushPO{" +
        "id=" + id +
        ", itemId=" + itemId +
        ", isPush=" + isPush +
        ", itemCode=" + itemCode +
        "}";
    }


    /**
     * 将PO 信息转化为DTO
     *
     * @param dto 需要进行转换的dto
     * @author zhangtan
     * @since 2018/7/22 0022
     */
    protected <T extends BaseDTO> void transDtoToPo(T dto) {
        BeanMapperUtil.copyProperties(this, dto, "id");
    }


}
